# -*- Mode: conf -*-


# ========== =========================================================
#
# {MY_MAILBOX} mailbox
#
# ========== =========================================================

IMAPAccount {MY_MAILBOX}
Host {MY_MAILBOX_HOST}
Port {MY_MAILBOX_PORT}
User {MY_MAILBOX_USERNAME}
# EXAMPLE: "pass my/path/to/secret"
PassCmd "{MY_MAILBOX_PASS_SECRETS_CMD_PATH}"
SSLType {MY_MAILBOX_SSL_TYPE}
AuthMechs LOGIN


IMAPStore {MY_MAILBOX}-remote
Account {MY_MAILBOX}


MaildirStore {MY_MAILBOX}-local
Subfolders Verbatim
# NOTE: Path must have trailing "/"
Path ~/.mail/{MY_MAILBOX}/
Inbox ~/.mail/{MY_MAILBOX}/Inbox


Channel {MY_MAILBOX}-all
Master :{MY_MAILBOX}-remote:
Slave :{MY_MAILBOX}-local:
# NOTE: Example to copy anything but MyPrivateDir and children
Patterns * !'MyPrivateDir' !'MyPrivateDir/*'
Create Both
SyncState *


Channel {MY_MAILBOX}-inbox
Master :{MY_MAILBOX}-remote:
Slave :{MY_MAILBOX}-local:
# NOTE: Some versions of mbsync use INBOX instead of Inbox.
Patterns INBOX Inbox Sent Drafts
Create Both
SyncState *
